package cn.xf.utils;

/**
 * @author xiaofu
 * @date 2021-05-14 14:42
 * @email dearaf@163.com
 */
public class StatusToString {

    public static String toString(Integer status,Integer type){
        String res = "";
        if(type == ConstantDict.PRO_ORDER){
            //如果是产品或者订单，则通过此转换
            if(status == 0){
                res = "关闭";
            }else if(status == 1){
                res = "开启";
            }else if(status == 2){
                res = "屏蔽";
            }
        }else if(type == ConstantDict.TRAVELLER_TYPE){
            //如果是旅行者人群划分
            if(status == 0){
                res = "普通群众";
            }else if(status == 1){
                res = "共青团员";
            }else if(status == 2){
                res = "党员";
            }
        }else if(type == ConstantDict.CREDENTIALS_TYPE){
            //如果是证件类型
            if(status == 0){
                res = "身份证";
            }else if(status == 1){
                res = "驾驶证";
            }else if(status == 2){
                res = "其它";
            }
        }else if(type == ConstantDict.USER_TYPE){
            //如果是证件类型
            if(status == 0){
                res = "失效";
            }else if(status == 1){
                res = "有效";
            }
        }
        return res;
    }
}
